package com.hfkh.keyun.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

@Getter
@Setter
@NoArgsConstructor
@TableName("tb_collect")
public class Collect implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id" ,type = IdType.AUTO) //自增
    private Integer id;//id
     @TableField("user_id")
    private Integer userId;//用户编号ID
    private User user;//用户对象
    @TableField("course_id")
    private Integer courseId;//所属课程ID
    private Course course;//课程对象
    @TableField("delete_flags")
    @TableLogic
    private Integer deleteFlags;
    @TableField(exist = false)
    private LocalDateTime createDate;//创建时间

}
